package asa;

public class BooleanExpr extends Expr {

    public BooleanExpr( boolean value ) {
        this.value = value;
    }

    @Override
	public void genJava(PWInterface pw) {
    	genJava(pw, false);
    }

	@Override
	public void genJava(PWInterface pw, boolean putParenthesis ) {
           pw.print( value ? "true" : "false" );
    }

    public static BooleanExpr True  = new BooleanExpr(true);
    public static BooleanExpr False = new BooleanExpr(false);

    private boolean value;
}
